package org.jeecg.modules.performance.mapper;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.performance.Model.PerforMonthDetailModel;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.performance.entity.PerformanceMonthDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: PerformanceMonthDetail
 * @Author: jeecg-boot
 * @Date:   2021-05-18
 * @Version: V1.0
 */
public interface PerformanceMonthDetailMapper extends BaseMapper<PerformanceMonthDetail> {
    List<PerforMonthDetailModel> getPerforMonthDetailList(Page<PerforMonthDetailModel> page, @Param(value = "perforMonthId") String perforMonthId, @Param(value = "departId") String departId);
    List<PerforMonthDetailModel> getPerforPersonalDetailList(Page<PerforMonthDetailModel> page, @Param(value = "userId") String userId, @Param(value = "name") String name, @Param(value = "sureFlag") Integer sureFlag);


    Map<String ,Object> getPerforData(@Param(value = "perforMonthId") String perforMonthId, @Param(value = "departId") String departId);


    /**
     *
     * @param departId
     * @param type 1  固定薪资参与考评  2 固定薪资不参与考评
     * @return
     */
    Integer getFixedSalaryCount(@Param(value = "departId") String departId, @Param(value = "type") Integer type);

    Integer  getCheckCount(@Param(value = "monthId") String monthId, @Param(value = "type") Integer type,@Param(value = "departId") String departId);
}
